package com.style.study.mp.controller;

import com.baomidou.mybatisplus.plugins.Page;
import com.style.study.mp.model.Role;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("role")
public class RoleActiveRecordController {

    @RequestMapping("list")
    public Object list() {
        Role role = new Role();
        List<Role> list = role.selectPage(
                new Page<Role>(1, 10),
                null).getRecords();
        return list;
    }
}
